a{
    text-decoration: none;
    color: #fff;
    &:hover{
        color: rgb(197, 196, 196);
    }
}
.box-wrapper{
    background-color: #000;
}
// 外部容器样式
.top-bar{
    max-width: 1200px;
    height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    margin: 0 auto;
}

// 左部菜单容器
.left-menu{
    &:active{
        .nav{
            display: block;
            // visibility: visible;
            // opacity: 1;
        }
    }

    // 设置下拉菜单
    .nav{
        display: none;
        // visibility: hidden;
        // opacity: 0;
        transition: all .7s;
        // 设置背景颜色占满整个网页
        position: absolute;
        top: 48px;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #000;
        padding-top: 60px;

        li{
            width: 80%;
            margin: 0 auto;
            border-bottom: 1px solid #757474;

            a{
                display: block;
                line-height: 44px;
                font-size: 14px;
            }
            // 设置li里最后一个a标签的样式
            &:last-child a{
                display: inline-block;
                margin-right: 6px;
            }
            span{
                color: #fff;
                font-size: 14px;
            }
        }
    }
}

// 图标容器
.menu-icon{
    width: 18px;
    height: 48px;
    position: relative;

    // 导航线
    li{
        width: 18px;
        height: 1px;
        background-color: #fff;
        position: absolute;
        transition: 0.5s;
        
        // 设置旋转原点
        transform-origin: left;
    }

    // 每个导航线的间距
    li:nth-child(1){
        top: 18px;
    }
    li:nth-child(2){
        top: 24px;
    }
    li:nth-child(3){
        top: 30px;
    }

    // 鼠标移入时的图标效果
    &:active{
        li:nth-child(1){
        transform: rotateZ(43deg);
    }
        li:nth-child(2){
        // 设置图标透明
        opacity: 0;
    }
        li:nth-child(3){
        transform: rotateZ(-43deg);
    }
    
    }
}

// 设置logo样式
.logo{
    a{
        text-indent: -99999px;
        display: block;
        width: 122px;
        height: 32px;
        background-image: url(../meitu-img/dff63979.sprites-index@2x.png);
        background-size: 400px 400px;
    }
}

// 设置媒体查询（设置响应式布局）
@media only screen{
    @media (min-width:768px){
        .left-menu{
            order: 2;
            flex: auto;
            .nav{
                display: flex;
                justify-content: space-around;
                // 关掉定位让他显示
                position: static;
                padding: 0;

                li{
                    width: auto;
                    border-bottom: none;
                    margin: 0;
                    a{
                        line-height: 48px;
                    }
                    span{
                        display: none;
                    }
                }
            }
            // 隐藏图标
            .menu-icon{
                display: none;
            }
        }
        .logo{
            order: 1;
        }
        .user-info{
            order: 3;
        }
    }
}